package cn.iocoder.yudao.module.yyzx.dal.mysql.nurse_level_content;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.yyzx.dal.dataobject.nurse_level_content.NurseLevelContentDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.yyzx.controller.admin.nurse_level_content.vo.*;

/**
 * 护理级别对应的护理内容 Mapper
 *
 * @author 超级管理员
 */
@Mapper
public interface NurseLevelContentMapper extends BaseMapperX<NurseLevelContentDO> {

    default PageResult<NurseLevelContentDO> selectPage(NurseLevelContentPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<NurseLevelContentDO>()
                .eqIfPresent(NurseLevelContentDO::getNurseLevelId, reqVO.getNurseLevelId())
                .eqIfPresent(NurseLevelContentDO::getNurseContentId, reqVO.getNurseContentId())
                .betweenIfPresent(NurseLevelContentDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(NurseLevelContentDO::getId));
    }

}